﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Common;

namespace AdminUI.Controllers
{
    public class ExperienceDetailController : BaseController
    {
        // GET: ExperienceDetail
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult Detail(int? id)
        {
            if (!id.HasValue)
            {
                return View("error");
            }
            var data = HttpHelper.HttpGet<Result<Param_ExperienceDetail>>(Tools.ApiPath+"api/ExperienceDetail/Find/"+id.Value, "get");
            if (data.Code!=200)
            {
                return View("error");
            }
            return PartialView(data.Data);
        }
    }
}